package com.xtinno.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xtinno.mapper.RuleInfoMapper;
import com.xtinno.pojo.po.RuleInfoPO;
import com.xtinno.service.RuleInfoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 规则信息
 *
 * @author GuanLei
 * @time 2025/5/6 17:31
 */
@Service
public class RuleInfoServiceImpl extends ServiceImpl<RuleInfoMapper, RuleInfoPO> implements RuleInfoService {

    @Override
    public RuleInfoPO getRuleInfoPoByRuleId(String ruleId) {
        return this.getById(ruleId);
    }

    @Override
    public Boolean saveRuleInfos(List<RuleInfoPO> ruleInfoPOS) {
        return this.saveBatch(ruleInfoPOS);
    }
}
